<?php

namespace app\api\controller;
use app\facade\Basic;
use app\api\service\Miners as ServiceMiners;
use think\Request;

class Miners extends BaseController
{
    public function profit(Request $request)
    {
        $param['user_id'] = $request->user_id;
        $param['ids'] = $request->param('ids',[]);

        /* 验证 */
        $this->validateData($param,'Miners.profit');

        /* 登录操作 */
        $ServiceMiners = new ServiceMiners();
        $result = $ServiceMiners->profit($param);
        return Basic::json($result);
    }

}
